package com.bit.demo2;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: kano
 * Date: 2025-02-16
 * Time: 11:12
 */
import com.bit.demo1.Computer;

public class TestComputer {
    public static void main(String[] args) {
        Computer com = new Computer("HW","i7","8G","13*14");
        //注意对于demo1包中Dog类 不是public class因此不能被其他包中的 类访问
        System.out.println(com.screen); //screen权限是public 可以被不同包的类访问
        //System.out.println(com.cpu);   //cpu权限是private只能被同一个包中同一类访问
        //System.out.println(com.brand); //brand权限是default 只能被同一个包的类看到
    }

}
